package game;

import player.Player;

/**
 * This class takes checks the ResourceBasket of each player and displays it at
 * the end of each round
 * 
 * @author Yasasvi
 */
public class Scoreboard {
    private ResourceBasket[] allScores;

    public ResourceBasket[] getScoreBoard() {
	return allScores;
    }
    
    /**
     * Updates the score with the player's resource basket.
     * @param player Player
     * @param i	Index of of resource basket
     */
    public void updateScore(Player player, int i) {
	allScores[i] = player.getResourceBasket();
    }

}